package cn.gistone.visualeditor.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class BasePage {
    @ApiModelProperty(value = "当前页",required = true)
    private Integer current = 1;

    @ApiModelProperty(value = "每页尺寸",required = true)
    private Integer size = 10;

    public Integer getCurrent(){
        return this.current-1;
    };
}
